﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-12 17:33:39
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{
	
	/// <summary>
	/// 扩展
	/// </summary>
	public partial class AuthorityUserRoleRelaOperate
	{
        /// <summary>
    	/// 根据断言条件获取单个
    	/// </summary>
        public static AuthorityUserRoleRelaInfo QuerySingle(Expression<Func<AuthorityUserRoleRelaInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        /// <summary>
    	/// 根据断言条件获获取列表
    	/// </summary>
        public static IList<AuthorityUserRoleRelaInfo> QueryList(Expression<Func<AuthorityUserRoleRelaInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 删除用户角色       
        /// </summary>
        /// <param name="RoleID"></param>
        public static void DeleteUserRole(int UserID)
        {
            dal.DeleteUserRole(UserID);
        }

        /// <summary>
        /// 获取用户角色名称
        /// </summary>
        /// <param name="intUserList"></param>
        /// <returns></returns>
        public static Dictionary<int, List<string>> GetUserRoleListNameByUserIds(List<int> intUserList)
        {
            return dal.GetUserRoleListNameByUserIds(intUserList);
        }

    }
}